<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{:session('cp.cpsysname')}--系统管理平台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="{:config('webconfig.description');}">
    <meta name="keywords" content="{:config('webconfig.keywords');}">
    <meta name="author" content="runoob">
    <link rel="stylesheet" href="__STATIC_URL__/static/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="__STATIC_URL__/static/css/index.css"/>
    <link rel="stylesheet" href="__STATIC_URL__/static/css/addmchat.css"/>
    <link rel="stylesheet" href="__STATIC_URL__/static/css/bootstrapSwitch.css"/>
    <script src="__STATIC_URL__/static/js/jquery-2.1.4.min.js"></script>
    <script src="__STATIC_URL__/static/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="__STATIC_URL__/static/js/bootstrapSwitch.js"></script>
    <script src="__STATIC_URL__/static/js/commen.js" type="text/javascript" charset="utf-8"></script>
    <script src="__STATIC_URL__/static/layer/layer.js"></script>

    <style>
        thead tr th {
            text-align: center;
        }

        tbody tr td {
            text-align: center;
        }

        .content .panel-search {
            border: 1px solid #d0f2f7;
        }

        .panel-default > .panel-heading {
            background: #EEF8FC;
            color: #26929C;
        }
      
    </style>
</head>
<body>
{include file='public/header'/}
<!------------------导航-------------------------->
<section id="content">
    {include file='public/left'/}
    <!--------------------------主要内容区域------------------------------------->
    <div class="content">
        <div class="page-heading">
            <ul class="breadcrumb mgl15 mgr15">
                <li>当前位置是:</li>
                <li>
                    <a href="">系统管理</a>
                </li>
                <li class="active" style="color: #02b87f;">版本更新</li>
            </ul>
        </div>


        <div class="panel panel-default mgl15 mgr15">
            <div class="panel-heading addCharts" style="background:#ededed;">版本列表
                <a href="{:url('system/helpadd')}"class="btn btn-success pull-right"style="margin-top: -7px;">添加帮助信息</a></div>

            <div class="panel-body">
                <table class="table table-bordered" data-toolbar="#toolbar">
                    <thead>
                    <tr>
                        <th data-type="1">标题</th>
                        <th data-type="1">状态</th>
                        <th data-type="3">内容</th>
                        <th data-type="2">时间</th>
                        <th>操作</th>

                    </tr>
                    </thead>
                    <tbody>
                    {volist name="list" id="vo"}
                    <tr>

                        <td>{$vo.keyword}</td>

                        <td> {:gethelptype($vo['type'])}</td>
                        <td>{$vo.info}</td>
                        <td>{$vo.addtime|date='Y-m-d H:i:s',###}</td>
                        <td>
                            <a type="button" class="btn btn-default" data-id="{$vo['id']}"onclick="del(this);">
                                删除
                            </a>
                            <a type="button" class="btn btn-default"  href="{:url('system/helpedit',['id'=>$vo['id']])}">
                                修改
                            </a>

                        </td>

                    </tr>
                    {/volist}
                    </tbody>
                </table>
            </div>

        </div>

    </div>
</section>



</body>



<!--设备列表 模型 开始-->

<!--设备列表 模型 结束-->

<script>
    function del(obj){
        var id=$(obj).attr("data-id");
        $.ajax({
            url:"{:url('system/helpdel')}",
            type:"post",
            dataType:"json",
            data:{
                id:id
            },
            success:function(data){
                console.log(data);
                alert(data.msg);
                window.location.href = "{:url('system/helplog')}";
            }
        })
    }
</script>
</html>
